package com.service.Impl;

import com.pojo.Bank;
import com.service.BankSer;

import java.util.List;

import static com.util.Vessel.bankDao;

public class BankSerImpl implements BankSer {
    @Override
    public List<Bank> queryBank() {
        return bankDao.queryBank();
    }

    @Override
    public int addBank(Bank bank) {
        return bankDao.addBank(bank);
    }

    @Override
    public List<Bank> idQueryBank(Bank bank) {
        return bankDao.idQueryBank(bank);
    }

    @Override
    public int noQueryBank(Bank bank) {
        int id = 0;
        for (Bank bank1 : bankDao.noQueryBank(bank)) {
            id = bank1.getId();
        }
        return id;
    }

}
